#include "AI.h"

extern list<AdditionalInfo> additional_list;
extern list<AdditionalInfo>::iterator additional_it;

void ContentTag(char* str)
{
	int n = 0;
	string s;
	AdditionalInfo tmp_AdditionalInfo;

	bool contentFlag = false;

	while(str[n] != NULL)
	{
		if(str[n] == '"')
		{
			if(!contentFlag)
			{
				contentFlag = true;
			}

			else
			{
				tmp_AdditionalInfo.word = s;
				tmp_AdditionalInfo.type = "CONTENT";
				additional_list.push_back(tmp_AdditionalInfo);

				return;
			}
		}

		else if(contentFlag)
		{
			s.push_back(str[n]);
		}

		n++;
	}

	return;
}